(ns zesql.optional-selmer)

(declare render)
(try
  (require 'selmer.parser)
  (let [srender (intern 'selmer.parser 'render)]
    (def render (var-get srender)))
  (catch Exception e
    (defn render [& args]
      (throw (RuntimeException. "require [selmer \"x.y.z\"]" e)))))

(println (render "{{ name }}" {:name "abc"}))